package cn.rumoss.jvm.deep.oom;

import java.util.ArrayList;
import java.util.List;

/**
 * -Xms10m -Xmx10m -XX:+HeapDumpOnOutOfMemoryError
 * @author xiaotang
 *
 */
public class HeapOOM {

	static class OOMObj {}
	
	public static void main(String[] args) {

		List<OOMObj> list = new ArrayList<OOMObj>();
		while(true) {
			list.add(new OOMObj());
		}
		
	}

}
